package com.majie.qiniu;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author majie
 */
@ConfigurationProperties(prefix = "qiniuyun")
public class QiNiuProperties {

	private static long DEFAULT_TOKEN_EXPIRES = 3600;

	private String accessKey;

	private String secretKey;

	// 区域id 0 华东机房 1 华北 2 华南 3 北美 4新加坡 其他自动配置
	private int zoneId;

	// bucketname
	private String bucket;

	private long expires = DEFAULT_TOKEN_EXPIRES;

	public String getAccessKey() {
		return accessKey;
	}

	public void setAccessKey(String accessKey) {
		this.accessKey = accessKey;
	}

	public String getSecretKey() {
		return secretKey;
	}

	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}

	public int getZoneId() {
		return zoneId;
	}

	public void setZoneId(int zoneId) {
		this.zoneId = zoneId;
	}

	public String getBucket() {
		return bucket;
	}

	public void setBucket(String bucket) {
		this.bucket = bucket;
	}

	public long getExpires() {
		return expires;
	}

	public void setExpires(long expires) {
		this.expires = expires;
	}

}
